package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "UserInfo".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class UserInfoHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfoHelper.id(),"UserInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("UserTelno", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("UserName", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("password", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("UserType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Priority", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("UserStatus", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("GrpList", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("PttPriority", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("GroupPriority", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("Workplace", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Address", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Contact", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Desc", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("addtime", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("Odb", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("SSInfoTypelist", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.SSInfoTypeSeqHelper.type(), null),new org.omg.CORBA.StructMember("LocalInfo", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserLocalHelper.type(), null),new org.omg.CORBA.StructMember("AuthNodeIDList", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("longitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("latitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("zoom", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("UserIconName", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("UserShowType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("UserMediaType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("UserMediaID", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("utRegIp", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep3", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep4", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/UserInfo:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo();
		result.UserTelno=in.read_string();
		result.UserName=in.read_string();
		result.password=in.read_string();
		result.UserType=in.read_long();
		result.Priority=in.read_long();
		result.UserStatus=in.read_long();
		result.GrpList=in.read_string();
		result.PttPriority=in.read_long();
		result.GroupPriority=in.read_long();
		result.Workplace=in.read_string();
		result.Address=in.read_string();
		result.Contact=in.read_string();
		result.Desc=in.read_string();
		result.addtime=in.read_string();
		result.Odb=in.read_long();
		result.SSInfoTypelist = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.SSInfoTypeSeqHelper.read(in);
		result.LocalInfo=com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserLocalHelper.read(in);
		result.AuthNodeIDList=in.read_string();
		result.longitude=in.read_string();
		result.latitude=in.read_string();
		result.zoom=in.read_string();
		result.UserIconName=in.read_string();
		result.UserShowType=in.read_long();
		result.UserMediaType=in.read_long();
		result.UserMediaID=in.read_string();
		result.utRegIp=in.read_string();
		result.keep2=in.read_string();
		result.keep3=in.read_string();
		result.keep4=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserInfo s)
	{
		out.write_string(s.UserTelno);
		out.write_string(s.UserName);
		out.write_string(s.password);
		out.write_long(s.UserType);
		out.write_long(s.Priority);
		out.write_long(s.UserStatus);
		out.write_string(s.GrpList);
		out.write_long(s.PttPriority);
		out.write_long(s.GroupPriority);
		out.write_string(s.Workplace);
		out.write_string(s.Address);
		out.write_string(s.Contact);
		out.write_string(s.Desc);
		out.write_string(s.addtime);
		out.write_long(s.Odb);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.SSInfoTypeSeqHelper.write(out,s.SSInfoTypelist);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserLocalHelper.write(out,s.LocalInfo);
		out.write_string(s.AuthNodeIDList);
		out.write_string(s.longitude);
		out.write_string(s.latitude);
		out.write_string(s.zoom);
		out.write_string(s.UserIconName);
		out.write_long(s.UserShowType);
		out.write_long(s.UserMediaType);
		out.write_string(s.UserMediaID);
		out.write_string(s.utRegIp);
		out.write_string(s.keep2);
		out.write_string(s.keep3);
		out.write_string(s.keep4);
	}
}
